/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package models;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

/**
 *
 * @author simone
 */
public class PacchettoDTO implements Serializable{
    
    
    private String pName;
    private String description;
    private int predefinito;
    private int onSale;
    Date dal;
    Date al;
    private ArrayList<hotelDTO> hotels;
    private ArrayList<tourDTO> tours;
    private ArrayList<TripDTO> trip;
    private stanzaDTO room;
    int idPacchetto;

    public PacchettoDTO() {
    }

    public PacchettoDTO(String name) {
        this.pName = name;
    }

    
    public int getIdPacchetto() {
        return idPacchetto;
    }

    public void setIdPacchetto(int idPacchetto) {
        this.idPacchetto = idPacchetto;
    }
     
    
    public void setPacchettoDTO(String name,String descrip,int predef, int onsale)
    {
        this.pName = name;
        this.description = descrip;
        this.predefinito = predef;
        this.onSale = onsale;
    }

    public stanzaDTO getRoom() {
        return room;
    }

    public void setRoom(stanzaDTO room) {
        this.room = room;
    }

    public void setDates(Date dal, Date al)
    {
        this.dal = dal;
        this.al  = al;
    }
    
    public Date getDal()
    {
        return this.dal;
    }
    
    public Date getal()
    {
        return this.al;
    }
    
    public String getName()
    {
        return this.pName;
    }
    
    public String getDescription()
    {
        return this.description;
    }    
        
    public int getOnSale()
    {
        return this.onSale;
    }    
    
    public int getPredef()
    {
        return this.predefinito;
    }
    
    public void setHotels(ArrayList<hotelDTO> hotels)
    {
        this.hotels = hotels;
    }
    
    public ArrayList<hotelDTO> getSelectedHotels()
    {
        return this.hotels;
    }
    
    public void setTours(ArrayList<tourDTO> tours)
    {
        this.tours = tours;
    }
    
    public ArrayList<tourDTO> getSelectedTours()
    {
        return this.tours;
    }

    public void setTrip(ArrayList<TripDTO> trip)
    {
        this.trip = trip;
    }
    
    public ArrayList<TripDTO> getSelectedTrip()
    {
        return this.trip;
    }
        
    public String infoString()
    {
        String info = this.pName+"Disponibile dal: "+this.dal.toString()+" al: "+this.al.toString();
        return info;
    }
    
    
    
    
    
}
